import { JSONMapping } from "../json-mapping";
import { UserDto } from "../dto/user.dto";
// import {Bill} from "../bill/bill";
import {ObjectDto, ObjectDtoInterface} from "../../services/sqliteDB/object.dto";
import {SyncStatus} from "../sync-status";

export class District extends JSONMapping implements ObjectDtoInterface {
    static PropertyKeyToJSONKeyMap() {
        return {
          id: "districtId",
          name: "districtName",
          number: "districtNo"
        };
    }
    public id: string = null;
    public name: string = null; // 台区名字
    public number: string = null; // 编号
    public syncStatus: SyncStatus = SyncStatus.None;

    constructor(json: { [key: string]: any }) {
        super(json);
        District.mapFromJSON(json, this);
    }
}

